<template>
  <view class="t">
    <textarea :value="value" style="background-color:#ccc;" auto-height class="textarea"></textarea>
    <button @click="open('/pages/textarea/new-page')">navigateTo new page</button>
  </view>
</template>

<script>
export default {
  data () {
    return {
      value: ''
    }
  },
  methods: {
    open (url) {
      uni.navigateTo({ url })
    }
  }
}
</script>

<style>
textarea {
  font-size: 16px;
}
</style>